#pragma once
#include "HwndHost.h"

namespace GUIToolkit
{
	class NativeHost :
		public HwndHost
	{
	private:
		RectF rect;

	protected:
		virtual void OnPropertyChanged(PROPERTY p);

		virtual void Create(HWND hWnd, RectF* rect) = 0;

	public:
		NativeHost(float x, float y, float width, float height, LPWSTR text = NULL);

		virtual void Paint(Graphics* g);

		virtual ~NativeHost(void);
	};


	class NativeButton
		: public NativeHost
	{
	protected:
		virtual void Create(HWND hWnd, RectF* rect);

	public:
		NativeButton(float x, float y, float width, float height, LPWSTR text = NULL);

		virtual ~NativeButton(void);
	};

}